package algorithms.threadpool;

import algorithms.encryption.base64.Base64Utils;
import algorithms.encryption.md5.MD5Utils;

import java.nio.charset.StandardCharsets;
import java.util.Base64;
import java.util.concurrent.ThreadLocalRandom;

/**
 * @description:
 * @author: zk
 * @date: 2023-07-18 18:17
 */
public class ThreadLocalRandomTest {
    public static void main(String[] args) {
//        int nextInt = ThreadLocalRandom.current().nextInt(10);
//        System.out.println(nextInt);
//        String s = Base64.getEncoder().encodeToString("ZHONGkai@971021".getBytes(StandardCharsets.UTF_8));
//        System.out.println(new String(s));
//        byte[] ixes = Base64.getDecoder().decode("WkhPTkdrYWlAOTcxMDIx");
//        System.out.println(new String(ixes));

        String s1 = "https://test-kpcloud.sczizt.com/kunpeng-issue/etc/xy/sendIssueRecord";
        String s2 = "https://test-kpcloud.sczjzt.com/kunpeng-issue/etc/xy/sendIssueRecord";
        char[] s1Arr = s1.toCharArray();
        char[] s2Arr = s2.toCharArray();
        for (int i = 0; i < s1Arr.length; i++) {
            if (s1Arr[i] != s2Arr[i]) {
                System.err.println(s1Arr[i]);
            }
        }
    }

}
